<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var str='';
    var arr=[1,3,5,8,4,6,2,1,5,11,22,11,2,4,6,9,15,16,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
    var arr1=['热门商品','精选商品','每日上新']
    var pro
    for(var i=0;i<=50;i++){
      var num=Math.floor(Math.random()*34)
      if(i<=22){
        pro=0;
      }else if(i<=36){
        pro=1;
      }else{
        pro=2;
      }
      str+=`insert into integral values('${i}','商品名','${arr[num]}','integral/${i}.jpg','自选','${arr1[pro]}');`
      str+="\n"
    }
    console.log(str)
  </script>
</body>
</html>